import reqeusts from "./requests";
export const requestPost = function(title, content, addtype, create_time, explain) {
    return reqeusts({
        url: 'bokecontent/',
        method: 'POST',
        data: { title: title, content: content, addtype: addtype, create_time: create_time, explain: explain },

    });
}
export const requestGet = function(params) {
    return reqeusts({
        url: 'bokecontent/list/',
        method: 'GET',
        params: params,
    });
}
export const requestGetn = function(url, params) {

    return reqeusts({
        url: url,
        method: 'GET',
        params: params,
    });
}
export const requestLogin = function(username, password) {
    return reqeusts({
        url: 'boke/login/',
        method: 'POST',
        data: { username: username, password: password }


    })
}
export const requestComment = function(title, content, addtype, create_time, bokeID) {
    return reqeusts({
        url: 'boke/comment/',
        method: 'POST',
        data: { title: title, content: content, addtype: addtype, create_time: create_time, bokeID: bokeID },
    })
}